﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using LFloatMath.Math;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.Target + "/" + SkillEditorConst.Cub, typeof(SkillEditorGraph))]
    public class SkillTargetSelectNode_Cub : SkillTargetSelectNode
    {
        [InspectorName("宽")] public float width;
        [InspectorName("长")] public float length;

        protected override bool checkRelation => true;

        protected override ETargetSelectType targetType => ETargetSelectType.Cub;

        protected override SkillCustomConfig CreateConfig()
        {
            return new TargetSelect_Cub_ConfigData()
            {
                width = ((LFloat)this.width)._val,
                length = ((LFloat)this.length)._val,
            };
        }
    }
}